
package com.microsoft.schemas.office.project.server.webservices.projectcontextdataset;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for anonymous complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType>
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;choice maxOccurs="unbounded" minOccurs="0">
 *         &lt;element name="Relationships">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="PROJ_UID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="RelatedTo_UID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="RelatedTo_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="Relationship" type="{http://www.w3.org/2001/XMLSchema}unsignedByte"/>
 *                   &lt;element name="HasBuildTeamPermission" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/choice>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "relationships"
})
@XmlRootElement(name = "ProjectContextDataSet")
public class ProjectContextDataSet {

    @XmlElement(name = "Relationships")
    protected List<ProjectContextDataSet.Relationships> relationships;

    /**
     * Gets the value of the relationships property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the relationships property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getRelationships().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ProjectContextDataSet.Relationships }
     * 
     * 
     */
    public List<ProjectContextDataSet.Relationships> getRelationships() {
        if (relationships == null) {
            relationships = new ArrayList<ProjectContextDataSet.Relationships>();
        }
        return this.relationships;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element name="PROJ_UID" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         &lt;element name="RelatedTo_UID" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         &lt;element name="RelatedTo_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         &lt;element name="Relationship" type="{http://www.w3.org/2001/XMLSchema}unsignedByte"/>
     *         &lt;element name="HasBuildTeamPermission" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "projuid",
        "relatedToUID",
        "relatedToNAME",
        "relationship",
        "hasBuildTeamPermission"
    })
    public static class Relationships {

        @XmlElement(name = "PROJ_UID", required = true)
        protected String projuid;
        @XmlElement(name = "RelatedTo_UID", required = true)
        protected String relatedToUID;
        @XmlElement(name = "RelatedTo_NAME", required = true)
        protected String relatedToNAME;
        @XmlElement(name = "Relationship")
        @XmlSchemaType(name = "unsignedByte")
        protected short relationship;
        @XmlElement(name = "HasBuildTeamPermission")
        protected boolean hasBuildTeamPermission;

        /**
         * Gets the value of the projuid property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getPROJUID() {
            return projuid;
        }

        /**
         * Sets the value of the projuid property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setPROJUID(String value) {
            this.projuid = value;
        }

        /**
         * Gets the value of the relatedToUID property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getRelatedToUID() {
            return relatedToUID;
        }

        /**
         * Sets the value of the relatedToUID property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setRelatedToUID(String value) {
            this.relatedToUID = value;
        }

        /**
         * Gets the value of the relatedToNAME property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getRelatedToNAME() {
            return relatedToNAME;
        }

        /**
         * Sets the value of the relatedToNAME property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setRelatedToNAME(String value) {
            this.relatedToNAME = value;
        }

        /**
         * Gets the value of the relationship property.
         * 
         */
        public short getRelationship() {
            return relationship;
        }

        /**
         * Sets the value of the relationship property.
         * 
         */
        public void setRelationship(short value) {
            this.relationship = value;
        }

        /**
         * Gets the value of the hasBuildTeamPermission property.
         * 
         */
        public boolean isHasBuildTeamPermission() {
            return hasBuildTeamPermission;
        }

        /**
         * Sets the value of the hasBuildTeamPermission property.
         * 
         */
        public void setHasBuildTeamPermission(boolean value) {
            this.hasBuildTeamPermission = value;
        }

    }

}
